package com.pets.springboot_petshop.service;

import com.pets.springboot_petshop.entity.Appointmentslot;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.time.LocalDate;
import java.util.List;

/**
 * @Author: wxk
 * @Email: 2089967794@qq.com
 * @Date: 2024/10/14 下午3:17 周一
 * @Description: 预约时间和名额服务接口
 */
public interface AppointmentslotService {
    //id查询
    Appointmentslot selectappointmentslot(int id);
    //service_id，通过服务分类查询
    List<Appointmentslot> selectname(String name);
    List<Appointmentslot> selectOrder(LocalDate date);
    //查询所有
    List<Appointmentslot> findAll();
    //添加
    int addAppointmentslot(Appointmentslot appointmentslot);
    //删除
    int deleteAppointmentslotById(int id);
    //修改数据
    int updateAppointmentslotById(Appointmentslot appointmentslot);
    List<Appointmentslot> selectservice_id(int service_id);
    // 批量修改status
    int batchUpdateStatus(@Param("array") int[] ids, @Param("state") String state);
    // 批量删除
    int admindelete(@Param("array") int[] ids);
}
